body {
    /* background: #f2f2f2; */
    background: #282c34;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 2px;
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: #9b59b6;
    color: #fff;
}

.floor {
    position: absolute;
    width: 400px;
    height: 130px;
    left: 0;
    bottom: 0;
    background: #49627c;
}

.ballMove {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 230px;
    left: 400px;
    animation: move 3s ease-out infinite;

    .ballUp {
        animation: up 3s ease-out infinite;
    }

    .ballDown {
        animation: down 3s ease-in infinite;
    }

    .ball {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        animation: ball 3s ease-in infinite;
    }
}

@keyframes move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-460px);
    }
}

@keyframes up {
    0%,
    20% {
        transform: translateY(0);
    }
    35%,
    50% {
        transform: translateY(-105px);
    }
    65%,
    80% {
        transform: translateY(-168px);
    }
    90% {
        transform: translateY(-190px);
    }
}

@keyframes down {
    0% {
        transform: translateY(-200px);
    }
    20%,
    35% {
        transform: translateY(0);
    }
    50%,
    65% {
        transform: translateY(105px);
    }
    80%,
    95% {
        transform: translateY(168px);
    }
    100% {
        transform: translateY(190px);
    }
}

@keyframes ball {
    0%,
    19%,
    25%,
    49%,
    55%,
    79%,
    85%,
    100% {
        transform: scale(1);
    }
    20%,
    50%,
    80% {
        transform: scale(1.1, 0.9);
    }
}
